import request from "@/utils/request";

// 在线客服
export function quickReply(params) {
  return request({
    url: "/quickReply/getByKeyWord",
    method: "get",
    params,
  });
}

// 消息列表
export function getMessageList(params) {
  return request({
    url: "/message/list",
    method: "get",
    params,
  });
}

// 消息已读
export function readMessage(id) {
  return request({
    url: "/message/read",
    method: "get",
    params: { id },
  });
}

// 留言列表
export function getLeaveMessageList(params) {
  return request({
    url: "/leaveMessage/page",
    method: "get",
    params
  });
}
